import request from '@/utils/request'

export function fetchData(data) {
    return request({
        url: '/repo/page',
        method: 'post',
        data
    })
}

export function save(data) {
    return request({
        url: '/repo/save',
        method: 'post',
        data
    })
}

export function deleteId(id) {
    return request({
        url: `/repo/delete/${id}`,
        method: 'get',
    })
}

export function deleteIds(data) {
    return request({
        url: `/repo/deleteBatch`,
        method: 'post',
        data
    })
}

export function findAll() {
    return request({
        url: `/repo/list`,
        method: 'GET',
    })
}